package com.ncu.servicetest;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;

//写一个接收器广播接收服务启动时候的广播
public class Broadcast extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        //发出短消息
        Toast.makeText(context, "服务启动", Toast.LENGTH_LONG).show();
    }
}
